package com.brillilab.domain.enums.method;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wuzhiyu
 * @Title: RecommendAuditStateEnum
 * @ProjectName brill_lab
 * @Description: TODO
 * @date 2019/2/2216:27
 * 0-等待审核,1-已推荐,2-审核未通过,3-取消推荐
 */
@Getter
@AllArgsConstructor
public enum RecommendAuditStateEnum {
    AuditWait(0, "待审核"), Recommend(1, "已推荐"), AuditRefuse(2, "审核未通过"), RecommendCancel(3, "已取消");
    private Integer state;
    private String name;
    
    public static String getName(Integer state) {
        for (RecommendAuditStateEnum p : RecommendAuditStateEnum.values()) {
            if (p.getState().equals(state)) {
                return p.name;
            }
        }
        return null;
    }
}
